package com.test.springmvc;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/rpl")
public class RequestParamCtrl {

    @RequestMapping("/uuu")
    public String uuu(@RequestParam(value = "username",required = true) String usernmae,
                      @RequestParam(value = "age",required = false) String age)
    {
        System.out.println(usernmae + "----->     " + age);
        return "login";
    }
}
